#ifndef _TK_H_
#define _TK_H_
#include <stdbool.h>
typedef struct Stack{
	char *elem;
	int top;
	int stacksize;
}st;

void InitStack(st *p);
//Initial stack

bool IsFull(st *p);
//whether the stack is full or not.

void Inc(st *p);
//expend the volume of stack.

bool Push(st *p,char val);
//add a val to stack.

bool IsEmpty(st *p);
//whether the stack is empty or not.

bool GetTop(st *p,char *rtval);
//grab the top val of stack.

bool Pop(st *p,char *rtval);
//grab and delete the top val of stack.

void Destroy(st *p);
//erase the stack.

#endif
